package com.hehao.java_basic.design_mode.behaviour.chain_of_responsibility.practice;

import com.hehao.common.entiy.Receipt;

import java.util.List;

/**
 * @author Damon
 * @date 2023/6/30
 */
public class chainClient {
    public static void main(String[] args) {
        List<Receipt> receiptList = Receipt.generateReceiptList();
        receiptList.forEach(receipt -> {
            ReceiptHandleChain receiptHandleChain = new ReceiptHandleChain();
            receiptHandleChain.handleReceipt(receipt);
        });
    }
}
